package com.zx.service.impl;

import com.zx.mapper.SmbmsBillMapper;
import com.zx.pojo.SmbmsBill;
import com.zx.service.BillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service //创建bean
public class BillServiceImpl implements BillService {
    @Autowired
    private SmbmsBillMapper billMapper;

    @Override
    public List<SmbmsBill> findAllByBill() {
        return billMapper.findAllByBill();
    }

    @Override
    public SmbmsBill findBillById(Long id) {
        return billMapper.findBillById(id);
    }

    @Override
    public boolean addBill(SmbmsBill smbmsBill) {
        return billMapper.addBill(smbmsBill);
    }

    @Override
    public boolean delBill(Long id) {
        return billMapper.delBill(id);
    }

    @Override
    public boolean updateBill(SmbmsBill smbmsBill) {
        return billMapper.updateBill(smbmsBill);
    }
}
